Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql_lab: re-raise exception in get_sql_results #3111

Merged
merged 1 commit into from
Aug 2, 2017

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Jul 11, 2017

As caller expect it to raise an exception instead of returning
None. Haven't run this but tests pass.

Refs #3075

@coveralls
Copy link

coveralls commented Jul 19, 2017

Coverage Status

Coverage decreased (-0.01%) to 69.259% when pulling 4f3c658e3662bf798866c4a10d83407ca0e56153 on xrmx:reraisesqllabgetresults into d7e4191 on apache:master.

@xrmx
Copy link
Contributor Author

xrmx commented Jul 20, 2017

@mistercrunch could you please merge this? We have two open bugs and one closed that are affected by this.

@coveralls
Copy link

coveralls commented Jul 26, 2017

Coverage Status

Coverage decreased (-0.09%) to 69.295% when pulling 14867b9574dc9e3c933a68e0028ef45de61dc91d on xrmx:reraisesqllabgetresults into 6045063 on apache:master.

As caller expect it to raise an exception instead of returning
None.

Refs apache#3075
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 69.338% when pulling f4250b4 on xrmx:reraisesqllabgetresults into 219f33f on apache:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 69.338% when pulling f4250b4 on xrmx:reraisesqllabgetresults into 219f33f on apache:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 69.338% when pulling f4250b4 on xrmx:reraisesqllabgetresults into 219f33f on apache:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 69.338% when pulling f4250b4 on xrmx:reraisesqllabgetresults into 219f33f on apache:master.

@@ -98,6 +98,7 @@ def get_sql_results(
query.status = QueryStatus.FAILED
query.tmp_table_name = None
sesh.commit()
raise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be raise e

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not passed to raise it's the one in the scope. I've verified it with both python3 and python2.

@mistercrunch mistercrunch merged commit 90592d3 into apache:master Aug 2, 2017
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1 labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants